{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "M\n",
      "a\n",
      "t\n",
      "p\n",
      "l\n",
      "o\n",
      "t\n",
      "l\n",
      "i\n",
      "b\n",
      "Matplotlib\n",
      "NumPy\n",
      "Seaborn\n",
      "Pandas\n",
      "Plotly\n",
      "SK-learn\n",
      "=============\n",
      "Matplotlib\n",
      "A visualization tool\n",
      "=============\n",
      "NumPy\n",
      "=============\n",
      "Seaborn\n",
      "A visualization tool\n",
      "=============\n",
      "Pandas\n",
      "=============\n",
      "Plotly\n",
      "A visualization tool\n",
      "=============\n",
      "SK-learn\n",
      "=================\n",
      "Matplotlib\n",
      "M\n",
      "a\n",
      "t\n",
      "p\n",
      "l\n",
      "o\n",
      "t\n",
      "l\n",
      "i\n",
      "b\n",
      "=================\n",
      "NumPy\n",
      "N\n",
      "u\n",
      "m\n",
      "P\n",
      "y\n",
      "=================\n",
      "Seaborn\n",
      "S\n",
      "e\n",
      "a\n",
      "b\n",
      "o\n",
      "r\n",
      "n\n",
      "=================\n",
      "Pandas\n",
      "P\n",
      "a\n",
      "n\n",
      "d\n",
      "a\n",
      "s\n",
      "=================\n",
      "Plotly\n",
      "P\n",
      "l\n",
      "o\n",
      "t\n",
      "l\n",
      "y\n",
      "=================\n",
      "SK-learn\n",
      "S\n",
      "K\n",
      "-\n",
      "l\n",
      "e\n",
      "a\n",
      "r\n",
      "n\n"
     ]
    }
   ],
   "source": [
    "str_for_loop = 'Matplotlib'\n",
    "for str_idx in str_for_loop:\n",
    "    print(str_idx)\n",
    "\n",
    "list_for_loop = ['Matplotlib', 'NumPy', 'Seaborn', 'Pandas', 'Plotly','SK-learn']\n",
    "for item_idx in list_for_loop:\n",
    "    print(item_idx)\n",
    "\n",
    "pakages_visual = ['Matplotlib', 'Seaborn', 'Plotly']\n",
    "for item_idx in list_for_loop:\n",
    "    print(\"=============\")\n",
    "    print(item_idx)\n",
    "    if item_idx in pakages_visual:\n",
    "        print(\"A visualization tool\")\n",
    "\n",
    "for item_idx in list_for_loop:\n",
    "    print(\"=================\")\n",
    "    print(item_idx)\n",
    "\n",
    "    for item_idx in item_idx:\n",
    "        print(item_idx)\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
